package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.BudgetsMapper;
import com.ruoyi.project.domain.Budgets;
import com.ruoyi.project.service.IBudgetsService;

/**
 * 预算信息Service业务层处理
 * 
 * @author lee
 * @date 2025-03-30
 */
@Service
public class BudgetsServiceImpl implements IBudgetsService 
{
    @Autowired
    private BudgetsMapper budgetsMapper;

    /**
     * 查询预算信息
     * 
     * @param budgetId 预算信息主键
     * @return 预算信息
     */
    @Override
    public Budgets selectBudgetsByBudgetId(Long budgetId)
    {
        return budgetsMapper.selectBudgetsByBudgetId(budgetId);
    }

    /**
     * 查询预算信息列表
     * 
     * @param budgets 预算信息
     * @return 预算信息
     */
    @Override
    public List<Budgets> selectBudgetsList(Budgets budgets)
    {
        return budgetsMapper.selectBudgetsList(budgets);
    }

    /**
     * 新增预算信息
     * 
     * @param budgets 预算信息
     * @return 结果
     */
    @Override
    public int insertBudgets(Budgets budgets)
    {
        return budgetsMapper.insertBudgets(budgets);
    }

    /**
     * 修改预算信息
     * 
     * @param budgets 预算信息
     * @return 结果
     */
    @Override
    public int updateBudgets(Budgets budgets)
    {
        return budgetsMapper.updateBudgets(budgets);
    }

    /**
     * 批量删除预算信息
     * 
     * @param budgetIds 需要删除的预算信息主键
     * @return 结果
     */
    @Override
    public int deleteBudgetsByBudgetIds(Long[] budgetIds)
    {
        return budgetsMapper.deleteBudgetsByBudgetIds(budgetIds);
    }

    /**
     * 删除预算信息信息
     * 
     * @param budgetId 预算信息主键
     * @return 结果
     */
    @Override
    public int deleteBudgetsByBudgetId(Long budgetId)
    {
        return budgetsMapper.deleteBudgetsByBudgetId(budgetId);
    }
}
